import { rcaNumberFormat } from './common.js'
import { commonTableOption } from './common.js'
export const tableOption = {
  ...commonTableOption,
  column: [
    {
      type: 'input',
      label: '退票时间',
      prop: 'statisticsDate'
    }, {
      type: 'select',
      label: '线路',
      prop: 'lineCode',
      display: true,
      type: 'select',
      //cascaderItem: ['stationCode'],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: '/support/swparamline/dictAll',
    }, {
      label: '发售车站',
      prop: 'saleStation',
      type: 'input'      
    }, {
      type: 'select',
      label: '故障运营商',
      prop: 'serviceOrg',
    }, {
      type: 'select',
      label: '购票支付方式',
      prop: 'salePaymentmethod'
    }, {
      label: '退票车站',
      prop: 'returnStation',
      type: 'input'      
    }, {
      type: 'input',
      label: '退票金额',
      prop: 'money',
      showSummary: true,
      precision: 2,
      formatter: (row, value, label, column) => {
        return rcaNumberFormat(value, true)
      },
    }, {
      type: 'select',
      label: '退票支付方式',
      prop: 'returnPaymentmethod'
    }, {
      type: 'select',
      label: '退换票类型',
      prop: 'reportType',
      searchLabelWidth: 120,
      props:{
        label:'label',
        value:'value'
      },
      dicUrl: '/admin/dict/type/ck_thp_report_type'
    },{
      type: 'input',
      label: '备注',
      prop: 'remark'
    }, ]
}
